package health.lm.com.mine.present;

import health.lm.com.component_base.base.mvp.contract.XPresent;
import health.lm.com.mine.activity.ThinkTankActivity;
import health.lm.com.mine.entity.ThinkTankEntity;
import health.lm.com.mine.model.MineModel;
import health.lm.com.network.callback.SimpleCallBack;

/**
 * @author GQI
 * @description:
 * @date :2019-08-12 15:16
 */
public class ThinkTankPresenter extends XPresent<ThinkTankActivity> {
    public void getColumn(){
        MineModel.getInstance().thinkTankCat(new SimpleCallBack<ThinkTankEntity>() {
            @Override
            public void onSuccess(ThinkTankEntity thinkTankEntity) {
                if (hasV()){
                    getV().getColumn(thinkTankEntity.getCategory_list());
                }
            }
        });

    }
}
